package cn.smbms.service.role;

import java.sql.Connection;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.smbms.dao.BaseDao;
import cn.smbms.dao.role.RoleDao;

import cn.smbms.pojo.Role;
import cn.smbms.tools.ACT;
@Service("roleServiceImpl")
public class RoleServiceImpl implements RoleService{
	@Resource(name="roleDao")
	private RoleDao roleDao;
	
	
	
	@Override
	public List<Role> getRoleList() {
		// TODO Auto-generated method stub
		
		List<Role> roleList = null;
		try {
			roleList = roleDao.getRoleList();
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}finally{
		ACT.close();
		}
		return roleList;
	}
	
}
